//
//  BangDing3View.m
//  DJS
//
//  Created by 浪尖渝力 on 2018/2/9.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "BangDing3View.h"

@implementation BangDing3View

-(void)creatView{
    self.backgroundColor=[UIColor whiteColor];
    
    UIView *nameView=[UIView new];
    [self addSubview:nameView];
    [nameView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.mas_equalTo(0);
        make.top.mas_equalTo(NAV_HEIGHT);
        make.height.mas_equalTo(55);
    }];
    
    UILabel *nameLabel=[UILabel new];
    [nameView addSubview:nameLabel];
    [nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.centerY.mas_equalTo(0);
    }];
    nameLabel.text=@"持卡人姓名";
    nameLabel.textColor=ColorWithRGB(49, 49, 49);
    nameLabel.font=[UIFont systemFontOfSize:17];
    
    UILabel *nameLabel2=[UILabel new];
    [nameView addSubview:nameLabel2];
    [nameLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-15);
        make.centerY.mas_equalTo(0);
    }];
    nameLabel2.text=[_userDic objectForKey:@"wl_bank_name"];
    nameLabel2.textColor=ColorWithRGB(149, 149, 149);
    nameLabel2.font=[UIFont systemFontOfSize:17];
    
    UIView *xianView=[UIView new];
    [self addSubview:xianView];
    [xianView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(nameLabel);
        make.right.mas_equalTo(nameLabel2);
        make.height.mas_equalTo(1);
        make.top.mas_equalTo(nameView.mas_bottom);
    }];
    xianView.backgroundColor=_LightGrey;
    
    UIView *nameView2=[UIView new];
    [self addSubview:nameView2];
    [nameView2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.mas_equalTo(0);
        make.top.mas_equalTo(xianView.mas_bottom);
        make.height.mas_equalTo(55);
    }];
    
    UILabel *NumLabel=[UILabel new];
    [nameView2 addSubview:NumLabel];
    [NumLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.centerY.mas_equalTo(0);
    }];
    NumLabel.text=@"银行卡号";
    NumLabel.textColor=ColorWithRGB(49, 49, 49);
    NumLabel.font=[UIFont systemFontOfSize:17];
    
    
    _numText=[UITextField new];
    [nameView2 addSubview:_numText];
    [_numText mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-10);
        make.left.mas_equalTo(150);
        make.height.mas_equalTo(35);
        make.centerY.mas_equalTo(0);
    }];
    _numText.placeholder=[_userDic objectForKey:@"wl_bank_number"];
    _numText.textColor=ColorWithRGB(149, 149, 149);
    _numText.textAlignment=NSTextAlignmentRight;
    _numText.returnKeyType=UIReturnKeyDone;
    
    UIView *xianView2=[UIView new];
    [self addSubview:xianView2];
    [xianView2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(nameLabel);
        make.right.mas_equalTo(nameLabel2);
        make.height.mas_equalTo(1);
        make.top.mas_equalTo(nameView2.mas_bottom);
    }];
    xianView2.backgroundColor=_LightGrey;
    
    
    UIView *nameView3=[UIView new];
    [self addSubview:nameView3];
    [nameView3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.mas_equalTo(0);
        make.top.mas_equalTo(nameView2.mas_bottom);
        make.height.mas_equalTo(55);
    }];
    
    UILabel *NumLabel2=[UILabel new];
    [nameView3 addSubview:NumLabel2];
    [NumLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.centerY.mas_equalTo(0);
    }];
    NumLabel2.text=@"手机号";
    NumLabel2.textColor=ColorWithRGB(49, 49, 49);
    NumLabel2.font=[UIFont systemFontOfSize:17];
    
    _phoneText=[UITextField new];
    [nameView3 addSubview:_phoneText];
    [_phoneText mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-10);
        make.left.mas_equalTo(150);
        make.height.mas_equalTo(35);
        make.centerY.mas_equalTo(0);
    }];
    _phoneText.placeholder=[_userDic objectForKey:@"wl_bank_phone"];
    _phoneText.textColor=ColorWithRGB(149, 149, 149);
    _phoneText.textAlignment=NSTextAlignmentRight;
    _phoneText.returnKeyType=UIReturnKeyDone;
    _phoneText.enabled=NO;
    
    UIView *xianView3=[UIView new];
    [self addSubview:xianView3];
    [xianView3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(nameLabel);
        make.right.mas_equalTo(nameLabel2);
        make.height.mas_equalTo(1);
        make.top.mas_equalTo(nameView3.mas_bottom);
    }];
    xianView3.backgroundColor=_LightGrey;
}

@end
